<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script type="text/javascript">
    var contextPath = "${ctx}";
</script>
<div class="top">
    <div class="logo">
        <a href="${ctx}/client/index.jsp"><img src="${ctx}/statics/images/logo.png"></a>
    </div>
    <%--未登录显示样式start--%>
    <div class="i_car">
                <div class="car_t">
                    购物车 [
                    <span>
                      空
                    </span>]
                </div>
        <div class="car_bg">
            <%--Begin 购物车未登录 Begin--%>
            <div class="un_login">还未登录！<a href="${ctx}/client/login.jsp" style="color:#ff4e00;">马上登录</a></div>
            <div class="price_a"><a href="${ctx}/client/login.jsp">去登录</a></div>
            <%--End 购物车未登录 End--%>
        </div>
    </div>
    <%--未登录显示样式end--%>

    <%--登录显示样式start--%>
    <div class="i_car">
        <div class="car_t">
            购物车 [
            <span>
              12
            </span>]
        </div>
        <div class="car_bg">
            <div class="un_login">我的购物车</div>

            <ul class="cars">

                <li>
                    <div class="img"><a href="${ctx}/client/goods/goodsDetail.jsp"><img src="${ctx}/files/1A836D2B3A3348DDAB19807E6CEA8028.jpg" width="58" height="58" /></a></div>
                    <div class="name"><a href="${ctx}/client/goods/goodsDetail.jsp">啫喱水</a></div>
                    <div class="price"><font color="#ff4e00">￥49</font> X2</div>
                </li>
                <li>
                    <div class="img"><a href="${ctx}/client/goods/goodsDetail.jsp"><img src="${ctx}/files/1A836D2B3A3348DDAB19807E6CEA8028.jpg" width="58" height="58" /></a></div>
                    <div class="name"><a href="${ctx}/client/goods/goodsDetail.jsp">啫喱水</a></div>
                    <div class="price"><font color="#ff4e00">￥49</font> X2</div>
                </li>

            </ul>
            <div class="price_sum">共计&nbsp;<font color="#ff4e00">￥</font><span>196</span></div>
            <div class="price_a"><a href="${ctx}/cart?action=toSettlement">去结算</a></div>

        </div>
    </div>
    <%--登录显示样式end--%>
</div>
